package com.hundsun.cprs.yyt.service.common;

/**
 * 常量参数
 * @author linbo
 * @version $Id: Constants.java,v 1.1.2.1-RC1 2017年12月25日 Exp $
 */
public abstract class Constants {
	/**
	 * 出价时编号
	 */
	public static String BID_NO_KEY="bidding";
	
	public static String Y="Y";
	
	public static String N="N";
	/**redis key解锁时间*/
	public static Long lockTime = 10L;
	
	public static int ONE = 1;
	public static int ZERO = 0;

	/** 用户配额消费计数器 */
	public static final String YYT_QUOTE_USE_COUNT = "YYT:QUOTE:USER:COUNT";
	/** 用户配额消费记录锁 */
	public static final String YYT_QUOTE_USE_LOCK = "YYT:QUOTE:LOCK:{0}:LOCK";
	/** 用户账户统计记录锁 */
	public static final String YYT_ACCOUNT_STAT_LOCK = "YYT:ACCOUNT:STAT:{0}:LOCK";


	/** 用户每日挂售数量计数器 */
	public static final String YYT_SELL_AMOUNT_COUNT = "YYT:SELL:AMOUNT:COUNT";
	/** 用户每日挂售数量记录锁 */
	public static final String YYT_SELL_AMOUNT_LOCK = "YYT:SELL:AMOUNT:LOCK:{0}:LOCK";

	/** 用户每日挂售金额汇总计数器 */
	public static final String YYT_SELL_MONEY_COUNT = "YYT:SELL:MONEY:COUNT";
	/** 用户每日挂售金额汇总记录锁 */
	public static final String YYT_SELL_MONEY_LOCK = "YYT:SELL:MONEY:LOCK:{0}:LOCK";

	/** 用户配额持仓新增记录锁 */
	public static final String YYT_QUOTE_HOLD_LOCK = "YYT:QUOTE:HOLD::LOCK:{0}:{1}:LOCK";

	public static final String YYT_ENTRUST_IMPORT_LOCK = "YYT:ENTRUST:IMPORT:LOCK";
	public static final String YYT_BATCH_AUDIT_LOCK = "YYT:ENTRUST:AUDIT:LOCK";
	public static final String YYT_BATCH_IMPORT_LOCK = "YYT:QUOTA:IMPORT:LOCK";


}
